<extend name="Base:base" />
<block name="head">
</block>
<block name="title">{$title}</block>
<block name="content">
    <form action="" method="post">
        <table class="table">
        <tr>
            <th colspan="2">添加用户</th>
        </tr>
        <tr>
            <td>用户账号</td>
            <td><input type="text" name="username"></td>
        </tr>
        <tr>
            <td>登陆密码</td>
            <td><input type="text" name="password"></td>
        </tr>
        <tr>
            <td>所属角色</td>
            <td>
                <select name="role_id[]">
                    <foreach name="roles" item="v">
                        <option value="{$v['id']}">{$v.name}({$v.remark})</option>
                    </foreach>
                </select>
            </td>
        </tr>
        <tr id="last">
            <td colspan="2">
                <input type="submit" value="保存添加" />
            </td>
        </tr>
    </table>
</form>
</block>
